package kr.hkit.powerjava.chapter11.work;

public class UnderGraduate extends Student {
	private String gName; //동아리 명
	
	public UnderGraduate() {}
	
	public UnderGraduate(String stdName, int stdNum, String major,
			String grade, int credit, String gName) {
		super(stdName, stdNum, major, grade, credit);
		this.gName = gName;
	}

	public String getgName() {
		return gName;
	}

	public void setgName(String gName) {
		this.gName = gName;
	}

	@Override
	public String toString() {
		return super.toString()+"\n재학생 [동아리 명 = " + gName + "]\n";
	}
	
}